package com.ruoyi.etp.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务质量监控记录对象 etp_service_quality_records
 *
 * @author xmj
 * @date 2025-09-09
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EtpServiceQualityRecords extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 服务时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服务时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serviceTime;
    /** 客户手机号 */
    @Excel(name = "客户手机号")
    private String customerPhone;
    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private String customerName;
    /** 服务场景 */
    @Excel(name = "服务场景")
    private String serviceScene;
    /** 标签 */
    @Excel(name = "标签")
    private String tags;
    /** 服务员工 */
    @Excel(name = "服务员工")
    private String serviceEmployee;
    /** 所属组织 */
    @Excel(name = "所属组织")
    private Long deptId;
    /** 服务时长 */
    @Excel(name = "服务时长")
    private String serviceDuration;
    /** 质检评分 */
    @Excel(name = "质检评分")
    private Long qualityScore;
    /** 风险等级 */
    @Excel(name = "风险等级")
    private String riskLevel;
    /** 是否存在风险 */
    @Excel(name = "是否存在风险")
    private Long hasRisk;
    /** 是否有效语音 */
    @Excel(name = "是否有效语音")
    private Long isEffective;
    /** 是否优秀语音 */
    @Excel(name = "是否优秀语音")
    private Long isExcellent;
    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serviceTime", getServiceTime())
            .append("customerPhone", getCustomerPhone())
            .append("customerName", getCustomerName())
            .append("serviceScene", getServiceScene())
            .append("tags", getTags())
            .append("serviceEmployee", getServiceEmployee())
            .append("deptId", getDeptId())
            .append("serviceDuration", getServiceDuration())
            .append("qualityScore", getQualityScore())
            .append("riskLevel", getRiskLevel())
            .append("hasRisk", getHasRisk())
            .append("isEffective", getIsEffective())
            .append("isExcellent", getIsExcellent())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
        .toString();
    }
}
